package model

import (
	"time"
)

type AuRefundCar struct {
	Id                int       `xorm:"not null pk autoincr INT(11)"`
	OrderId           int       `xorm:"not null INT(11)"`
	CarId             int       `xorm:"not null INT(11)"`
	Sid               int       `xorm:"not null INT(11)"`
	ReferId           int       `xorm:"not null INT(11)"`
	Type              int       `xorm:"not null TINYINT(1)"`
	Status            int       `xorm:"not null default 1 TINYINT(1)"`
	Compensate        string    `xorm:"not null default '0' VARCHAR(10)"`
	BackReason        int       `xorm:"not null TINYINT(1)"`
	CollectionId      int       `xorm:"INT(11)"`
	CollectionIdCar   int       `xorm:"INT(11)"`
	PaymentId         int       `xorm:"INT(11)"`
	RemarkAmountOfCar string    `xorm:"VARCHAR(255)"`
	RemarkPayment     string    `xorm:"VARCHAR(255)"`
	DriverCompany     string    `xorm:"VARCHAR(50)"`
	DriverName        string    `xorm:"VARCHAR(30)"`
	DriverPhone       string    `xorm:"VARCHAR(20)"`
	DepartureTime     time.Time `xorm:"DATETIME"`
	Procedures        string    `xorm:"VARCHAR(255)"`
	NextTraceTime     time.Time `xorm:"DATETIME"`
	FinishEmpId       int       `xorm:"INT(11)"`
	FinishEmpName     string    `xorm:"VARCHAR(50)"`
	FinishTime        time.Time `xorm:"DATETIME"`
	CreateTime        time.Time `xorm:"not null DATETIME"`
	UpdateTime        time.Time `xorm:"not null DATETIME"`
	Remark            string    `xorm:"VARCHAR(255)"`
}
